#parse("partials/header.html") #parse("partials/sidebar.html")
<script type="text/javascript">
    $(document).ready(function () {
        var oTable = $('#datalist').dataTable({
            "bSort": false,
            "sPaginationType": "full_numbers",
            "bProcessing": true,
            "bServerSide": true,

            "sAjaxSource": rooturl + "/master/actiongroupspec/tablelist",
            "aoColumns": [
                             { "mDataProp": "Id" },
                            { "mDataProp": "NameValue" },
                            { "mDataProp": "DescValue" }
                        ],
            "aoColumnDefs": [
                                {
                                    "fnRender": function (o) {
                                        //                                                              
                                        return "<center><a class='tooltip' title='Setting group' href='" + rooturl + "/master/actiongroupspec/settingaction/?groupid=" + o.aData['Id'] + "'><img src='/images/Icons/table.png'/></a> <a class='tooltip' title='Edit Record' href='/master/actiongroupspec/editactiongroup/?id=" + o.aData['Id'] + "' ><img src='/images/Icons/pencil.png'/></a></center>";
                                    },
                                    "aTargets": [0]
                                }
                        ],
            "fnServerData": function (sSource, aoData, fnCallback) {
                aoData.push({ "name": "namevalue", "value": $('#TextboxNameValue').val() });
                aoData.push({ "name": "descvalue", "value": $('#TextboxDescValue').val() });
                jQuery.ajax({
                    "dataType": 'json',
                    "type": "GET",
                    "url": rooturl + "master/actiongroupspec/tablelist",
                    "data": aoData,
                    "success": fnCallback
                });
            }
        });

        function checkForEnter(event) {
            if (event.keyCode == 13) {
                oTable.fnDraw();
            }
        }

        $('#TextboxNameValue').keypress(checkForEnter);
        $('#TextboxDescValue').keypress(checkForEnter);
        $('#buttonSearch').click(function () { oTable.fnDraw(); });
    });

</script>
<style>
    div#datalist_filter 
    {
        display:none;
    }
    div#datalist_length 
    {
        display:none;
    }
    .mws-table thead 
    {
        margin-top:-10px;
    }
</style>
<div id="mws-container" class="clearfix">
    <!-- Inner Container Start -->
    <div class="container">
        <!-- Panels Start -->
        <div class="mws-panel grid_8">
            <div class="mws-panel-header">
                <span class="mws-i-24 i-table-1">$Pagetitle</span>
            </div>
            <div class="mws-panel-body">
                <div class="mws-panel-toolbar top clearfix">
                    <ul>
                        <li><a class="mws-ic-16 ic-accept" href="/master/actiongroupspec/createactiongroup/" title="Accept">
                            Add Group Specialty</a></li>
                        <li><a class="mws-ic-16 ic-accept" href="/master/actiongroupspec/" title="Accept">List Group Specialty</a></li>
                    </ul>
                </div>
                <br />
                <div class="mws-form" action="#">
                    <div class="mws-form-inline">
                        <div class="mws-form-row">
                             <label>
                               Name Value</label>
                            <div class="mws-form-item large">
                                <div class="mws-form-cols clearfix">
                                    <div class="mws-form-col-2-8 alpha">
                                       <div class="mws-form-item">
                                            <input id="TextboxNameValue" type="text" class="mws-textinput" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="mws-form-row">
                            <label>
                                Description</label>
                            <div class="mws-form-item large">
                                <div class="mws-form-cols clearfix">
                                    <div class="mws-form-col-2-8 alpha">
                                         <div class="mws-form-item">
                                            <input id="TextboxDescValue" type="text" class="mws-textinput" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <br />
                    <div class="mws-button-row">
                        <input id="buttonSearch" type="submit" value="Search" class="mws-button red" />
                    </div>
                </div>
                
                <table cellpadding="0" cellspacing="0" border="0" class="mws-table" id="datalist"
                    width="80%">
                    <thead>
                        <tr>
                            <th style="width: 25px; text-align: center">
                                Actions
                            </th>
                            <th style="width: 100px;text-align: center">
                               Name Value
                            </th>
                            <th style="width: 100px;text-align: center">
                               Desc Value
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td colspan="7" class="dataTables_empty">
                                
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <!-- Panels End -->
    </div>
    <!-- Inner Container End -->
</div>
<!--mws-container End-->
#parse("partials/footer.html")





















